import request from '@/utils/request'

export function ratingsList(query) {
  return request({
    url: '/api/ratings_list/read',
    method: 'get',
    params: query
  })
}

export function deleteRatings(query) {
  console.log(query)
  return request({
    url: '/api/ratings_list/delete',
    method: 'post',
    data: query
  })
}

export function addRatings(query) {
  return request({
    url: '/api/ratings_list/add',
    method: 'post',
    data: query
  })
}

export function updateRatings(query) {
  return request({
    url: '/api/ratings_list/update',
    method: 'post',
    data: query
  })
}

export function importingRatings(query) {
  return request({
    url: '/api/ratings_list/importing',
    method: 'post',
    data: query
  })
}
